package com.snowfield.lbcommon.velocity.haproxy;

import java.util.List;

/**
 * haproxy配置文件对象
 */
public class HaproxyConfig {
    private GlobalSection globalSec;
    private DefaultSection defaultSec;
    private List<ListenSection> listenSectionList;
    //是否需要开启antibot攻击防护，只要有一个listen需要开启，此开关需要开启，同时增加相应的stick-table
    private Boolean antibotBool = Boolean.FALSE;

    public GlobalSection getGlobalSec() {
        return globalSec;
    }

    public void setGlobalSec(GlobalSection globalSec) {
        this.globalSec = globalSec;
    }

    public DefaultSection getDefaultSec() {
        return defaultSec;
    }

    public void setDefaultSec(DefaultSection defaultSec) {
        this.defaultSec = defaultSec;
    }

    public List<ListenSection> getListenSectionList() {
        return listenSectionList;
    }

    public void setListenSectionList(List<ListenSection> listenSectionList) {
        this.listenSectionList = listenSectionList;
    }

    public Boolean getAntibotBool() {
        return antibotBool;
    }

    public void setAntibotBool(Boolean antibotBool) {
        this.antibotBool = antibotBool;
    }
}
